#!/bin/bash

# 1: running
# 0: stopped

if [ -d "${CSJ_WEB_PATH}" ]; then
    count=`ps -ef | grep "runserver" | grep "/usr/bin/python" | grep -v "grep" | wc -l`
    if [ $count -ne "0" ]; then
        echo "1"; exit 0
    else
        echo "0"; exit 0
    fi
fi

